Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added character functions to API #5549

Merged
merged 2 commits into from
Sep 15, 2021
Merged

Added character functions to API #5549

merged 2 commits into from
Sep 15, 2021

Conversation

CEisenhofer
Copy link
Collaborator

No description provided.

@@ -1445,6 +1445,31 @@ namespace z3 {
check_error();
return expr(ctx(), r);
}
expr charle() const {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naming conventions elsewhere:
char_le
char_to_int
char_to_bv
...

@@ -90,7 +90,7 @@ func_decl* char_decl_plugin::mk_func_decl(decl_kind k, unsigned num_parameters,
else if (!b.is_bv_sort(domain[0]) || b.get_bv_size(domain[0]) != num_bits())
msg << "expected bit-vector sort argument with " << num_bits();
else {
m.mk_func_decl(symbol("char.to_bv"), arity, domain, m_char, func_decl_info(m_family_id, k, 0, nullptr));
return m.mk_func_decl(symbol("char.from_bv"), arity, domain, m_char, func_decl_info(m_family_id, k, 0, nullptr));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ups

@NikolajBjorner
Copy link
Contributor

/usr/bin/clang++ -DJULIA_ENABLE_THREADING -Dz3jl_EXPORTS -I/home/vsts/work/1/s/src/api -I/home/vsts/work/1/s/build/src/api -I/home/vsts/work/1/s/src/api/c++ -isystem /home/vsts/.julia/artifacts/b55cd96f4dd60da926644fc18aef04c69f891b7d/include -isystem /usr/local/julia1.6.2/include/julia -Werror=odr  -Werror=delete-non-virtual-dtor  -Werror=overloaded-virtual  -fcolor-diagnostics -O2 -g -DNDEBUG -fPIC -std=gnu++17 -MD -MT src/api/julia/CMakeFiles/z3jl.dir/z3jl.cpp.o -MF src/api/julia/CMakeFiles/z3jl.dir/z3jl.cpp.o.d -o src/api/julia/CMakeFiles/z3jl.dir/z3jl.cpp.o -c /home/vsts/work/1/s/src/api/julia/z3jl.cpp
In file included from /home/vsts/work/1/s/src/api/julia/z3jl.cpp:2:
/home/vsts/work/1/s/src/api/c++/z3++.h:1449:24: error: no matching function for call to 'Z3_mk_char_le'
            Z3_ast r = Z3_mk_char_le(ctx(), *this);
                       ^~~~~~~~~~~~~
/home/vsts/work/1/s/src/api/z3_api.h:3794:19: note: candidate function not viable: requires 3 arguments, but 2 were provided
    Z3_ast Z3_API Z3_mk_char_le(Z3_context c, Z3_ast ch1, Z3_ast ch2);
                  ^
1 error generated.

@NikolajBjorner NikolajBjorner merged commit c58b2f4 into Z3Prover:master Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants